﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RestHttpInfras.RequestEntities;

namespace RestHttpInfras;
public interface IHttpUtil
{
    /// <summary>
    /// 传输本地图像给算法
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    public Task<bool> PostFileRequest(FileRequest request);

    /// <summary>
    /// 调用自动分割算法
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    public Task<SegResponse> PostSegRequest(AiSegRequest request);

    public Task<SegResponseNew> PostSegRequestNew(AiSegRequest request);
}
